# $Id: PKGBUILD 65558 2012-02-21 08:56:01Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Maintainer: Geoffroy Carrier <geoffroy.carrier@aur.archlinux.org>

pkgname=hsolink
pkgver=1.0.118
pkgrel=8
pkgdesc="HSO command line connection utility"
arch=('i686' 'x86_64')
url="http://www.pharscape.org/hsolinkcontrol.html"
license=('GPL2')
depends=('ozerocdoff' 'net-tools')
install=hsolink.install
source=("http://www.pharscape.org/downloads1.html/$pkgname-$pkgver.tar.gz")
md5sums=('8b5b179c487b7ad95112fe74dea7e302')

build() {
  cd "$srcdir/$pkgname-$pkgver"
  ./configure --prefix=/usr
  make
}

package() {
  cd "$srcdir/$pkgname-$pkgver"
  make DESTDIR="$pkgdir/" install
  chgrp network "$pkgdir"/usr/bin/hsolinkcontrol
  chmod ug+s "$pkgdir"/usr/bin/hsolinkcontrol
}
